//
//  YMUIUtil.h
//  MyProject
//
//  Created by Pei on 16/6/19.
//  Copyright © 2016年 Xiaobo Pei. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"

@protocol YMUIUtilDelegate <NSObject>

@required
//用于当提示框消失时再次自动显示密码输入框
- (void)reshowAlertView;
@end

@interface YMUIUtil : NSObject

@property (nonatomic, weak) id<YMUIUtilDelegate> delegate;

+(YMUIUtil*) getInstance;

//显示联网等待
-(void) showLoadingWithTitle:(NSString*)title;

//隐藏联网等待
-(void) hideLoadingView;

//显示能自动消失的提示框
-(void) showTipViewAutoDis:(NSString*)title;
-(void) showTipViewAutoDisWithTitle:(NSString*)title withMsg:(NSString*)msg;

//隐藏提示框
-(void) closeView;

//清除密码框指针
-(void) clearAlertView;

//隐藏密码输入框
- (void)hideAlertView;

//再次显示密码框
- (void)showAlertViewAgain;


-(void) showAlertViewWithMessage:(NSString *)message cancelTitle:(NSString *)cancelString sureTitle:(NSString *)sureTitle AndDelete:(id)deletef;

@end
